Optical response of Ag2, Ag3, Au2, and Au3 in argon matrices