Strain effects in ZnO thin films and nanoparticles