Exciton spectroscopy of hexagonal boron nitride using nonresonant x-ray Raman scattering