Development of a smart thyristor valve for HVDC transmission