Barnegat man pleads guilty to aggravated assault and firearms charges