3D printing of metal cases for electronic components