Atmospheric transmission and thermal background emission in the mid-infrared at Mauna Kea