A Method to Calculate the g-Coefficients of the Molecular Pair Correlation Function from Molecular Dynamics Simulations