L-functions, functional equations and Weil's converse theorem