Quadratic integration: Theory and application to the electronic structure of platinum