Sum rules for the conductivity of superconducting films