Model potential calculations for HF and HCl