Microstrain in nanocrystalline samples from atomistic simulation