Modeling of distributed feedback semiconductor lasers with axially-varying parameters