The PHENIX measurement of heavy flavour via single electrons in pp, d–Au and Au–Au collisions at