Electronic Properties of Complex Crystalline and Amorphous Phases of Ge and Si. I. Density of States and Band Structures