Seasonal variations of the relative optical air mass function for background aerosol and thin cirrus clouds at Arctic and Antarctic sites