Rational sums of hermitian squares of free noncommutative polynomials