An attitude determination system suitable for a spacecraft