A method for calculating the radiation characteristics of nonequilibrium laboratory plasmas