Snap-together electronics with 3D printing