Method Of Embedded Imperfections For The Direct Simulation Of Deformation Instabilities In Film-Substrate Structures