Explain the purpose of using function interp1 and the difference between its options; linear , spline, pchip.