Japan logs 2.82 tril. yen trade deficit in August