Levitated magnetomechanical and optomechanical systems as ultra-sensitive resonators