HCl and HF proton donors: a theoretical study