Maximally efficient quantum thermal machines fueled by nonequilibrium steady states