Most incompatible measurements and sum-of-squares optimisation