Measurement of femtosecond pulse contrast of low-repetition-rate lasers by optical Kerr effect