Simulation and modeling of the powder diffraction pattern from nanoparticles: studying the influence of surface strain