Spin-state switches in molecular materials chemistry