FPGA-based Implementation of Modular Multilevel Converter Model for Real-time Simulation of Electromagnetic Transients