Teen pleads guilty in shooting at undercover state troopers