Water transport through nanoporous materials: Porous silicon and single walled carbon nanotubes