Heteroepitaxy of dissimilar materials: effect of interface structure on strain and defect formation