Aberdeen comfortably defeated a poor Rangers side at Pittodrie to go nine points clear of their rivals and stay level with Celtic at the top of the Premiership.