One-dimensional modelling of individual waves and wave-induced longshore currents in the surf zone