Type I–type II band offset transition of the ZnMgSeZnTe system