Development and Testing of a Rig-Based Quick Event Detection System to Mitigate Drilling Risks