Mathematical modelling of multi-terminal VSC-HVDC links in power systems using optimal power flows