Self-Consistent Calculation of Work Function, Charge Densities, and Local Densities of States for Cu(100)