Hydration free energy calculations by the acceptance ratio method