Changed behavior of measureSPD.

(1) Raise errors when timed out, or when quality code is 7 or 8.
(2) Return zeros when quality level is -1 or 10 (low light level)