Beam profiler