LaAlO3 thickness window for electronically controlled magnetism at LaAlO3/SrTiO3 heterointerfaces