Real-time measurement of soil attributes using onthe-go near infrared reflectance spectroscopy