Evolution of cooperativity in the spin transition of an iron(II) complex on a graphite surface