Germans squeeze into final four on aggregate after drama in Dortmund