On the representation of electromagnetic fields in closed waveguides using four scalar potentials