Index Formulae for Line Bundle Cohomology on Complex Surfaces