Control of electrical systems using artificial intelligence for more electric aircraft applications