Electronic structure of solids and molecules