Simulations of the low-dimensional magnetic systems by the quantum transfer-matrix technique