Generation of baryon inhomogeneities in the electroweak phase transition