EMPIX: A High Dynamic Range Diamond Pixel Detector for Ultra-fast Electron Diffraction and Microscopy