A multiphysics model that can capture crack patterns in Si thin films based on their microstructure