Accurate protein domain classification for metagenomic sequences containing frameshift errors