Single-phase three-stage SST modeling using RTDS for controller hardware-in-the-loop application