Kähler–Einstein metrics and the Kähler–Ricci flow on log Fano varieties