The cities of Mecca and Medina were vital to the foundation of what religion?