Optimization of EDX performance in Tecnai TEMs.