A simple method for the prediction of the orientation of H2O molecules in ionic crystals