Vibrational spectroscopy of water in narrow nanopores.