Measurement of resonance production in the reactionsγγ →π 0 π 0 andγγ →π 0 η