Resonance contributions to the electromagnetic low energy constants of chiral perturbation theory