Sealed-beam headlights were a staple of cars from the 1940s, and they were even required by law. So why did automakers move away from those designs?