Water permeation and wavelike density distributions inside narrow nanochannels