The densities of liquid iron and nickel and an estimate of their critical temperature