Modeling semiconductor heteroepitaxy: a continuum approach