Biosignatures in Earth and Mars ice and brines