Opto-thermo-electrical generation of magnetic fieldстатья