Radiative power loss from laboratory and astrophysical plasmas. I. Power loss from plasmas in steady-state ionisation balance