The Noncommutative Geometry of Electrodynamics