Learning activation functions from data using cubic spline interpolation