Spin tuning of electron-doped metal-phthalocyanine layers.