Variable temperature IR spectroscopy and quantum chemistry as the tool for diagnostics of metal spin state