A High Accuracy Horizon Sensor for Small Satellites