Magnetic shape-memory alloys: thermomechanical modelling and analysis