An extension of the Faddeev–Jackiw technique to fields in curved spacetimes