Evaluation of Medipix2 detector for recording electron diffraction data in low dose conditions