The Role of Migration in the Evolution of Phenotypic Switching