Ducati's Chaz Davies produced a fine performance to win race one of the World Superbikes round in Aragon.