Interaction of CO and NO with WC(0001)