The potential energy as a function of internuclear distance for three diatomic molecules, XX2\ce{X_2}, YX2\ce{Y_2}, and ZX2\ce{Z_2}, is shown in the graph above. Based on the data in the graph, which of the following correctly identifies the diatomic molecules, XX2\ce{X_2}, YX2\ce{Y_2}, and ZX2\ce{Z_2} ?

XX2YX2ZX2(A)HX2NX2OX2(B)HX2OX2NX2(C)NX2OX2HX2(D)OX2HX2NX2 \begin{array}{c c c c} & \ce{X2} & \ce{Y2} & \ce{Z2} \\ \hline \text{(A)} & \ce{H2} & \ce{N2} & \ce{O2} \\ \text{(B)} & \ce{H2} & \ce{O2} & \ce{N2} \\ \text{(C)} & \ce{N2} & \ce{O2} & \ce{H2} \\ \text{(D)} & \ce{O2} & \ce{H2} & \ce{N2} \\ \end{array}