AI could optimize hydroelectric dams in the Amazon