Rory McIlroy will play for Ireland in 2016 Olympics