Algorithm for the systematic solvation of proteins based on the directionality of hydrogen bonds