Thermal-electric numerical simulation of a surface ion source for the production of radioactive ion beams