Numerical solution of two- and three-dimensional thermomechanical problems using the theory of a Cosserat point