Dissimilarity for functional data clustering based on smoothing parameter commutation