German economy accelerated in 2016 thanks to higher spending