Early warning for VHE gamma-ray flares with the ARGO-YBJ detector