A topological join construction and the Toda system on compact surfaces of arbitrary genus