Robust identification of active galactic nuclei through HST optical variability in GOODS-S: comparison with the X-ray and mid-IR-selected samples★