Recovering the shape of a quantum tree by scattering data