First-principles studies of HF and HCl adsorption over graphene