htc scales back smartphone production amid declining revenue