Tom Kristensen put in a commanding performance in DTM qualifying at Barcelona to take pole position for Sunday's race.