Rory McIlroy shot a closing six-under-par 66 to charge to a one-shot victory in the BMW PGA Championship at Wentworth.