Study of water, ion, and molecular transport through two-dimensional nanoconfinements