Optical Josephson effect in weakly coupled semiconductors