Tunneling spectroscopy of localized states of WS2 barriers in vertical van der Waals heterostructures