The ionization mechanism for gas in the nuclei of NGC 1052 and NGC 4278