Feasibility of Determining the Composition of Planetary Ices by Far Infrared Observations: Application to Martian Cloud and Surface Ices