X-ray and Raman study of CH3NH3PbI3 perovskite nanocrystals