Pseudoscalar decays into two photons in chiral perturbation theory