Bonding energetics in HF and their relation to H2 and F2