Patterned liquid-crystal optics for broadband coronagraphy and wavefront sensing