Hydrogen, boron and nitrogen atoms in diamond: a quantum mechanical vibrational analysis