Energy exchange between heterostructure layers by real‐space electron transfer