Gravity-driven coatings on curved substrates: a differential geometry approach