17-year-old pleads guilty in carjacking, sentenced to 6 years