Dynamically balancing a flexure-based scan stage inside a scanning electron microscope