XMCD spectroscopy on valence fluctuating and heavy fermion compounds in very high magnetic fields up to 40 T