Spin-state switching in Fe(II) helicates and cages