Optical absorption of matrix isolated Li, Na, and Ag clusters and microcrystals