NASA plans to use spy telescopes in dark-energy mission