Input–output analysis, model reduction and control of the flat-plate boundary layer