Mechanical spin control of nitrogen-vacancy centers in diamond