RTDS-Based Hardware-in-the-Loop Validation of Virtualized Protection, Monitoring and AI Algorithms for Digital Substations