Estimation of drift and diffusion functions from time series data: a maximum likelihood framework.