Derivation of the Landau–Lifshitz–Bloch equation from continuum thermodynamics