Measurement of hold-up times in a thermal ion source for metallic and monoxide ions of lanthanum and cerium