Squeezed nanocrystals: equilibrium configuration of metal clusters embedded beneath the surface of a layered material.