Caffarelli-Kohn-Nirenberg inequalities with remainder terms