Optimizing water permeability through the hourglass shape of aquaporins