Mechanistic origin of the correlation between spin state and spectra of model cytochrome P450 ferric heme proteins