Guaranteeing Safety of Learned Perception Modules via Measurement-Robust Control Barrier Functions