Spain immigration amnesty attracts 1.2 million applicants