Rory McIlroy to lose $3 million for withdrawing from RBC Heritage