String-inspired methods and the worldline formalism in curved space