Conductivity and lithiophilicity gradients guide lithium deposition to mitigate short circuits