On the derivation of the spacetime metric from linear electrodynamics