A review of diagnostic and prognostic capabilities and best practices for manufacturing