Electroweak phase transition in a nonminimal supersymmetric model