Spectral sum rules for three-point functions and their application to π0→2γ decay