Differential calculus on graphon space and statistical applications of graph limit theory