Measurement of the invariant-mass spectrum for the two photons from the η→π0γγ decay