Approximation of several dimensional functions by trigonometric polynomials