Electroweak baryogenesis in the next to minimal supersymmetric model