Crack branching in thermopiezoelectric materials