Asymptotic Expansion of the Bardeen-Cooper-Schrieffer Partition Function by Means of the Functional Method,