Magnetic ordering in CeMg2Si2 and Ce2MgSi2