Interactive 1D model for cloud formation and atmospheric chemistry on Mars