Continuum modeling of the heteroepitaxial growth of semiconductor nanostructures