Learning graphons from data: Random walks, transfer operators, and spectral clustering