Z-scan measurements using high repetition rate lasers: how to manage thermal effects.