Constructing accurate potential energy surfaces for a diatomic molecule interacting with a solid surface: H2+Pt(111) and H2+Cu(100) | Synapse