Curves of low genus on surfaces and applications to Diophantine problems