On the magnetic and valence properties of CeMgY compounds