Influence of phase shifting transformers and HVDC on power system losses