Density and Temperature Diagnostics of X-Ray Sources - Line Ratios for Helium-Like Ions