Design of a parallel magnetic box energy analyzer attachment for electron microscopes