Smartphone giants scramble for profits in tough market