Enforcing safety for vision-based controllers via Control Barrier Functions and Neural Radiance Fields