Nonhomogeneity characterization of rare-earth doped glasses by photodeflection technique