Abelian Duality on Globally Hyperbolic Spacetimes