Fully Digital Real-Time Electromagnetic Transients Simulator