Magnetism in two-dimensional van der Waals materials