Physicochemical and functional properties of whole legume flour