Molecule-based nonlinear optical switch with highly tunable on-off temperature using a dual solid solution approach