Double-logarithmic asymptotics of scattering amplitudes in gravity and supergravity