Gravar-mail: Design of protein switches based on an ensemble model of allostery