Real Time Simulation of Internal Faults in Synchronous Machines