Mechanocaloric effects in shape memory alloys