Approximate solution of the inverse Richards' problem