APS-based Miniature Sun Sensor for Earth Observation Nanosatellites