Low-energy high-brightness electron beam dynamics based on slice beam matrix method