Photoinduced defects in wide-gap materials: hydrogenated amorphous silicon-carbon and silicon-nitrogen films