Magnetic properties of the layered magnetic topological insulator EuSn2As2