The Kempf–Ness Theorem and invariant theory for real reductive representations