The structural and optical properties of ZnO bulk and nanocrystals under high pressure