Symmetry of hole states in la2-xsrxcuo4+delta and la2-xsrxnio4+delta