Control of HVDC system