Influence of Lyman-series fine-structure opacity on theK-shell spectrum and level populations of low-to-medium-Zplasmas