Lightsail design with neural optimization of topology