BMW third-quarter profit grows on X3 sales