Persistence and Extinction for Population Models in Switching Environments