Spectrum and Power Allocation for Vehicular Networks with Diverse Latency Requirements