Lightcurve inversion for attitude determination