Free-surface flow over curved surfaces: Part I: Perturbation analysis