Optimization‐based stability analysis of structures under unilateral constraints | Synapse