Resource-aware trust-based security for vehicular smart-grid networks