Controlling collective electronic states in cuprates and nickelates : a resonant x-ray scattering study /: a resonant x-ray scattering study. ([2020])