BaF2 scintillator: A stand-alone detector for γ-rays and light charged particles