Stability of Neumann problems and applications to the variational theory of crack propagation