Stein-Weiss and Caffarelli-Kohn-Nirenberg inequalities with angular integrability