A Particle Module for the PLUTO Code. I. An Implementation of the MHD–PIC Equations