Electronic structure and magnetic properties of the spin-Peierls compound CuGeO 3