Describing local and non-local electron heating by the Fokker–Planck equation