Programmable all-fibre optical pulse shaper based on time-domain binary phase-only linear filtering