Atmospheric emission and opacity at millimeter wavelengths due to oxygen