What Hong-Ou-Mandel interference says on two-photon frequency entanglement