Gravar-mail: Optimizing graph-based patterns to extract biomedical events from the literature