Spin-state dynamics of a photochromic iron(II) complex and its immobilization on oxide surfaces via phenol anchors