Photoluminescence dynamics in chalcogenide glasses and crystals