Reciprocity in electron diffraction and microscopy