Optical properties of graphene nanoribbons: The role of many-body effects