Constructing analytical solutions of linear perturbations of inflation with modified dispersion relations