Error adaptive schemes for: LT and HT switched capacitors and microcontroller based static var compensator AT 11 kv substations