Nonparametric inference of stochastic differential equations based on the relative entropy rate