Multiphysical system modeling as an interface between optics and semiconductor mechanics