Measurement of the branching fraction for the decay KS → πμν with the KLOE detector