An instrument for measuring high-power laser beam profiles and beam attenuation