German universities restrict teaching due to energy crisis