Adèles and the geometry of schemes