On approximation of functions by two-dimensional continued fractions