Smartphone demand boosts HTC profits