Measurement of the quenching and channeling effects in a CsI crystal used for a WIMP search