Measurement of the permittivity of nematic liquid crystals in magnetic and electric fields using extrapolation procedures