Structural and functional characterization of the Curli adaptor protein CsgF