Eigenvalues and bifurcation for elliptic equations with mixed Dirichlet-Neumann boundary conditions related to Caffarelli-Kohn-Nirenberg inequalities