Apple's quarterly profit leaps 30%, nears $1 trillion value