A dead Mars may have been inevitable – and the sun is to blame