Japan's exports in May grew at their fastest pace since November 2022, boosted by robust demand for cars and semiconductors.