Functional data analysis and prediction tools for continuous glucose-monitoring studies