The probabilities of moderate deviations of U-statistics and excessive deviations of Kolmogorov-Smirnov and Kuiper statistics