Attack detection and estimation in cooperative vehicles