Estimating nitrogen status of rice using the image segmentation of G-R thresholding method