Advances in the understanding of Kohn-Sham DFT via the optimised effective potential method