Analytic energy second derivatives for open-shell two-configuration self-consistent-field wave functions: application to carbyne and silyne least-motion insertion reactions