On the nonvanishing of central values and derivatives of modular L-functions in families of quadratic twists