Solution of optimal power flow problems using moment relaxations augmented with objective function penalization