Template-assisted nanostructure fabrication by glancing angle deposition: a molecular dynamics study