Effect of Hard Segment Structure on the Thermomechanical Properties of Polyurethaneimides