Field Theory of Active Brownian Particles in Potentials