Spain receives more than 1M applications to legalize irregular migrants