How to keep an ion within a certain distance away from a surface?

Dear All,
I have a solid-liquid-solid sandwich-like system, liquid solution contains ions. For some ions, I want to keep them within certain distance from one solid phase, does anyone have idea how to do that? Thank you!


Regards,
Jingjing