A One-Dimensional Continuum Model for Shape-Memory Alloys