J1-J2 chain with next-to-nearest-neighbor couplings