Invention helps California growers optimize water use