d-state contribution to STM. Structure of van der Waals surfaces (TaSe2, Mo0.5W0.5Se2) and relevance for catalysis