A sophisticated electronic sensor buried in hardened metal shells at the tip of a growing number of U.S. ballistic missiles reflects a significant achievement in weapons engineering that experts say could help pave the way for reductions in the size of the country’s nuclear arsenal but also might create new security perils.