Persistent photoconductivity in II-VI and III-V semiconductor alloys and a novel infrared detector