Simulation of transients in synchronous generators and HVDC links and study of torsional interactions