Two-state model for bacterial chemoreceptor proteins