Insolation solutions for Mars and the Earth