Electromagnetic actuators for gravity compensation and vibration isolation