Nearly 3,100 migrants have reached Spain's Canary Islands by boat over the last two days as the country declared a national emergency.