Binding energies and structures of two-dimensional excitonic complexes in transition metal dichalcogenides