Precise measurement of the decay KL ->pi0 gamma gamma