First principle calculation of ZnSe epitaxy on Si and GaAs substrates