Multidimensional thermoelasticity for nonsimple materials – well-posedness and long-time behavior