Vibrational signatures of the water behaviour upon confinement in nanoporous hydrogels