Virtual photons in imaginary time: Computing exact Casimir forces via standard numerical electromagnetism techniques