Haar wavelets over triangular domains with applications to multiresolution models for flow over a sphere