Wavelet upscaling based on piecewise bilinear approximation of the permeability field