Measuring and Hedging the Basis Risk by Functional Data Models