Soliton equations and the Riemann-Schottky problem