Replication of nanoscale surface gratings via injection molding