Electronic structure of Cu-doped ZnO thin films by z-ray absorption, magneetic circular dichroism, and resonant inelastic x-ray scattering