Baryon asymmetry generation in the electroweak theory: A lattice study