Scattering theory approach to electrodynamic Casimir forces