The geometric measure of entanglement for symmetric states