Optical pulse shaping by filters based on spectral hole burning