LLB simulation of the temperature dependent switching critical curve of a Stoner–Wohlfarth macrospin in the presence of a polarized current