The light component spectrum in the energy region 1-300 TeV measured by ARGO-YBJ with a bayesian approach