Threshold photoelectrons coincidence spectroscopy of doubly-charged ions of nitrogen, carbon monoxide, nitric oxide and oxygen