Theoretical study of the core-ionized and various core-excited and shake-up states of acetylene and ethylene by ab initio MRD-CI methods