Rational invariants of certain classical groups over finite fields