Dissociative ionization by low energy electron impact. Energy distribution and appearance energy of doubly ionized fragments from N2 and O2