Direct methods and refinement in electron and X-ray crystallography – diketopiperazine revisited