Effects of Time Delay, DC Offset, and Truncation Errors on Interfacing of a Phase-Locked Loop (PLL) with a Real-time Simulator for Controller Hardware-In-Loop (CHIL) Simulation