Epitaxial growth of thin films studied by molecular dynamics simulation