Rory McIlroy declares for Ireland