Local versus global fold switching in protein evolution: insight from a three-letter continuous model