Structural and magnetic characterization of 2D van der Waals materials using scanning transmission electron microscopy