Method for the diagnosis of heart diseases