Amorphous water in three-dimensional confinement of zeolite-templated carbon