Improving the robustness of nonadditive watermarks through optimum detection theory