Mechanism of water permeation through modified carbon nanotubes as a model for peptide nanotube channels