Automatic relevance determination for Gaussian process regression with functional inputs