Ridgefield rallies to beat Staples in FCIAC quarterfinals