Diagnosability and diagnosis of sparsely interconnected multiprocessor systems