Real time simulation of electric railway systems using RTDS