Investigations of water-bearing environments on the Moon and Mars