Superconductivity of lanthanum and cerium at high pressures