Plasma diagnostics for understanding the plasma–surface interaction in HiPIMS discharges: a review