A novel approach for introducing the electron-electron and electron-impurity interactions in particle-based simulations