Hybrid analytical model of switched reluctance machine for real-time hardware-in-the-loop simulation