Cherenkov light-based beam profiling for ultrarelativistic electron beams