Symmetry of hole states in La2−xSrxCuO4 + δ and La2−xSrxNiO4 + δ