A molecular orbital approach to chemisorption: III. Atomic H and O on graphitic BN