Flow fields control for bubble refinement induced by electromagnetic fields