A three-bus power injection model of UPFC and its engineering application