Flux jumps in type II superconductors