How to find the interface between a liquid layer and a solid layer?

Dear All,

I build a two layer structure with a liquid layer and a solid layer (as in the following picture), How can I find the interface between the two layers? And how can I can find the distance between a atom in the liquid and the interface?

Untitled.jpg

Thank you.

Jingjing Bu