Determine the value of \(\int_0 ^{\frac{\pi}{2} }(-2cos x)dx\)