Pore‐scale heterogeneity, energy dissipation and the transport properties of rocks