Competing interactions give rise to two-state behavior and switch-like transitions in charge-rich intrinsically disordered proteins | Synapse