Soft x-ray virtual diagnostics for tokamak simulations.