DUALITY INVARIANCE OF ALL FREE BOSONIC AND FERMIONIC GAUGE FIELDS