A polynomial energy-gap model for molecular linewidths