Attitude determination using earth horizon sensors