A direct search for the CP-violating decay KS -> 3 pi0 with the KLOE detector at DAFNE