Novel Hardware and Machine Learning Methods for NQR Detection of Landmines