Detection of the Crab Nebula with the 9.7 m prototype Schwarzschild-Couder telescope