Intelligent interface for a microprocessor controlled scanning transmission electron microscope with x‐ray imaging