Quantitative analytical electron microscopy of metals and minerals