Modified Poisson eigenfunctions for electrostatic Bernstein--Greene--Kruskal equilibria