Accurate dosimetry in scanning transmission X-ray microscopes via the cross-linking threshold dose of poly(methyl methacrylate).