Measurement of time-dependent CP-violating asymmetries in B0 -> K*0 gamma (K*0 -> K0S pi0) decays