Superintelligence as a cause or cure for risks of astronomical suffering