Optically controlled superlattice or quantum well devices