Apple nears a $1 trillion market cap as it clears another quarter ahead of expectations