A wavelet-based adaptive finite element method for advection-diffusion equations