Wiener-Landis criterion for Kolmogorov-type operators