Calculating temperature-dependent properties of Nd2Fe14B permanent magnets by atomistic spin model simulations