Electronic structure of rare earth based high temperature superconducting systems x ray spectroscopic investigations of cuprate superconductors