Thyroid problems linked to risk of sudden cardiac death