Size dependent electronic and magnetic properties of ultra thin graphene nanoribbons