Determination of the centroid and sigma values of the central Gaussian part of a spectral line and their use for detection of spectral interference