Simultaneous inversion of surface-wave phase velocity and attenuation: Rayleigh and Love waves over continental and oceanic paths