Stability of pencils of plane quartic curves