Statistical-Query Lower Bounds via Functional Gradients