SPH for incompressible free-surface flows. Part I: Error analysis of the basic assumptions