Numerical generation of multidimensional flamelet databases using an adaptive wavelet method