Robust and nonparametric procedures in measurement error models