Convex Neural Codes in Dimension 1