Studies on development of optical system for sensing of soil nutrients for application in precision agriculture