Cars of future ‘will detect heart attacks’ in drivers