Study of magnesium and aluminum alloys absorption coefficient during Nd:YAG laser interaction