Finite-density Monte Carlo calculations on sign-optimized manifolds