maximize |e^{i theta} + e^{ 2i theta} - 1 + e^{- i theta} + e^{ - 2 i theta}| for theta from 0 to 2 pi