Ju l 2 01 7 Magnetometry via spin-mechanical coupling in levitated optomechanics