Finite temperature effective potential to order g4, λ2 and the electroweak phase transition