Large-eddy simulation of transition to turbulence in a boundary layer developing spatially over a flat plate