Foreign residents who spend more than six months outside Spain will no longer lose their permit