Generation of Baryon Number from the Magnetic Field at the Electroweak Crossover