Phase transitions and ensemble inequivalence in the generalized Curie–Weiss model with quartic interaction | Synapse