Magmatic precipitation as a possible origin of Noachian clays on Mars