Cassini imaging of Saturn's rings. II. A wavelet technique for analysis of density waves and other radial structure in the rings