Anharmonicity and the isotope effect in superconducting lithium at high pressures: a first-principles approach