Dynamical formation of horizons in recoiling D-branes