Effects of solar irradiance on the upper ionosphere and oxygen ion escape at Mars: MAVEN observations