Charge redistribution in the formation of one-dimensional lithium wires on Cu(001)