Statistical mechanical modelling of chemical reactions in complex systems: the kinetics of the haem carbon monoxide binding-unbinding reaction in myoglobin