Isoelectronic determination of the thermal Casimir force