Deformation of Electronic Structures Due to CoO6 Distortion and Phase Diagrams of NaxCoO2.yH2O