Graphoepitaxy for translational and orientational ordering of monolayers of rectangular nanoparticles