Greece extends residence permits