A novel optical method for estimating the near-wall volume fraction in granular flows