Real abelian varieties and the theory of Comessatti