Quantum gradient descent algorithms for nonequilibrium steady states and linear algebraic systems