Application of complex energy integration to selfconsistent electronic structure calculations