Picosecond pulse shaping by photochemical time-domain holography