Competition between stable states in spatially-distributed systems