The dissociation of diatomic molecules at surfaces