Decay estimates for the wave and Dirac equations with a magnetic potential