High-Resolution Line-by-Line Pulse Shaper for Optically Driving Cryogenic Josephson Junctions