On the harmonious coloring of trees