Derivation of O(3) Electrodynamics from the Einstein–Sachs Theory of General Relativity