Existence, uniqueness, and long-time behavior of materials with nonmonotone equations of state and higher-order gradients