A Thouless formula and Aubry duality for long-range Schrödinger skew-products