funLOCI: a local clustering algorithm for functional data