Optical properties of Al, Fe, Ti, Ta, W, and Mo at submillimeter wavelengths