Avoiding gas-phase calculations in theoretical pKa predictions