Estimates for the Nevanlinna characteristics of some classes of meromorphic functions and their applications to differential equations