Charge transfer and multiple density waves in the rare earth tellurides