Permanent magnet variable machines