Analytical transmission electron microscopy in the third dimension