Long-term monitoring of the blazars AO 0235+164 and S5 0716+714 in the optical and radio ranges