Nucleation and propagation of thermomagnetic avalanches in thin-film superconductors (Review Article)