Beijing bans export of materials used in semiconductors and batteries