Dynamical friction on extended objects