Pegatron reports decreased earnings for 2018