$M$-estimation in a diffusion model with application to biosensor transdermal blood alcohol monitoring