On S-Duality in Abelian Gauge Theory