Model Choice in Structured Nonparametric Regression and Diffusion Models