Corrugated single layer templates for molecules: From
h
-BN nanomesh to graphene based quantum dot arrays