An overview of charge-exchange spectroscopy as a plasma diagnostic