Multi-Agent Deep Reinforcement Learning for Safe Autonomous Driving with RICS-Assisted MEC