Dark energy, integrated Sachs–Wolfe effect and large-scale magnetic fields