Fourier expansions of functions with bounded variation of several variables