X-ray absorption and resonant inelastic X-ray scattering calculations with ligand field single cluster method on praseodymium nickel oxide