Autonomous star identification and spacecraft attitude determination with CCD star trackers