Spin and charge excitations in artificial hole- and electron-doped infinite layer cuprate superconductors