Identification of heavy, energetic, hadronically decaying particles using machine-learning techniques