An inequality for the Lévy distance between two distribution functions and its applications