Studying soil properties using visible and near infrared spectral analysis