Germany posts $5.4B foreign trade surplus in July