A rational design of cosolvent exfoliation of layered materials by directly probing liquid–solid interaction