Combined electrical and optical heating in thermal wave microscopy of semiconductor devices