Planar photonic chips with tailored angular transmission for high-contrast-imaging devices.