Principal Components Analysis with Spline Optimal Transformations for Continuous Data