Explain the concept of setup and hold times in digital flip-flops and how timing violations affect system stability.