Measurement of time-dependent CP asymmetry in B0→KS0π0γ decays