Long-term optical and radio monitoring of the quasars S5 0716+714 and 4C 38.41 on various time scales