Differentiability of degenerate electronic wave functions with respect to parametric variables