Gravar-mail: Simultaneous optimization of biomolecular energy function on features from small molecules and macromolecules