Lowe resigns after 5 years at N.C. State