Estimation of the long memory parameter in stochastic volatility models by quadratic variations