Excitons in conjugated polymers from first principles