Functional genomic analysis identifies novel regulators of germline development using flatworm models