Computed temperature stability of the remanence and the coercivity of nanoscaled permanent magnets