Quadratic twists of modular forms and elliptic curves