Dendritic flux avalanches and nonlocal electrodynamics in thin superconducting films.