Gravar-mail: Motif-directed network component analysis for regulatory network inference