A Secure Gateway Localization and Communication System for Vehicular Ad Hoc Networks