Photoconductivity and photoluminescence of amorphous chalcogenides