Measurement of the charge asymmetry for the KS → πeν decay and test of CPT symmetry with the KLOE detector