Correcting sextant altitudes - Sun, Star, and Planets