Protein functional-group 3D motif and its applications