Contingent deficit sanctions and moral hazard with a stability pact