Tesla quarterly profits top $1 bn for 1st time