Metastable and equilibrium defect structure of II–VI/GaAs interfaces