Water Photolysis and Its Contributions to the Hydroxyl Dayglow Emissions in the Atmospheres of Earth and Mars.