Many-body Green's-function calculations on the electronic excited states of extended systems