Comparison of the rate of excited-state proton transfer from photoacids to alcohols and water