Transport properties and distribution of water molecules confined in hydrophobic nanopores and nanoslits.