Linear population allocation by bistable switches in response to transient stimulation.