Fast computation of elastic and hydrodynamic potentials using approximate approximations