Solution of the multichannel Coqblin-Schrieffer impurity model and application to multilevel systems