Incorporating the dynamic nature of molecules improves performance of structure-based function prediction methods