Mechanical Control of Spin States in Spin-1 Molecules and the Underscreened Kondo Effect