Polyhedral ellipsoidal structure for microwave cavities in particle accelerators and other applications