How Much Measurement Independence Is Needed to Demonstrate Nonlocality?