having uniform volume charge densities ρ1 and ρ2 respectively