A wavelet-based algorithm for a four-year climatology of gravity waves