Photoluminescence, photostructural transformations and photoinduced anisotropy in rare-earth-doped chalcogenide glassy films