Modal analysis of separate-confinement heterojunction lasers with inhomogeneous cladding layers