A novel thermomechanical model of shape-memory alloys’ beams