Flexible, compact, and high-power-compatible packaging of microwave and millimeter-wave electronics