A Spatial functional Approach for Curve Classification A Spanish firms’ panel data analysis