A connection between linearized Gauss–Bonnet gravity and classical electrodynamics II: Complete dual formulation