The economics of traffic regulations