Estimation of the average surface heat flux over an inhomogeneous terrain from the vertical velocity variance