Incorporating long-range interactions and polarization in machine learning potentials with explicit electrons