Essential dimension of quadrics