Fast algorithms for removing atmospheric effects from satellite images