Residual stress modeling and analysis for micro electroforming layer