Understanding optical and structural properties of the CH3NH3PbI3 nanocrystal thin films under humidity conditions