Molecular Dynamics Studies on Structure and Phase Transitions of Nanoconfined Water