Electronic and magnetic properties of tripentaphene nanoribbons