Nonadiabatic effects in the B, C and E, F states of HD