Supervised classification of curves via a combined use of functional data analysis and tree-based methods