Total Energy Calculation of Solids Using Pseudopotentials