Divergence study and emittance measurements for the electron beam emitted from a diamond pyramid