Quadratic algebraic function fields with ideal class number two