Surface nanobubbles and nanodroplets