Production of high-quality electron beams in numerical experiments of laser wakefield acceleration with longitudinal wave breaking