Proton mediated spin state transition of cobalt heme analogs