The ground state of two coupled Gross-Pitaevskii equations in the Thomas-Fermi limit