Focusing and stabilizing laser?plasma-generated electron beams with magnetic devices