Evolving crack patterns in thin films with the extended finite element method