NGC 6334 and NGC 6357. Insights from spectroscopy of their OB star populations