Formation design of distributed telescopes in earth orbit with application to high-contrast imaging