Distinguishing between regular and chaotic orbits of flows by the weighted Birkhoff average