Koopmans-Compliant Spectral Functionals for Extended Systems