The Doi-Peliti field theory of run-and-tumble and active Brownian particles