Determination of residual stress in glass frit bonded MEMS by finite element analysis