Synthesis and optical characterization of chalcogenide and chalcohalide semiconductors