Text this: Algorithms of fault-tolerant control of switched-reluctance drive