Evaluation of the ionization quenching effect in an organic plastic scintillator using kV x-rays and a modified Birks model with explicit account of secondary electrons