German defence and foreign ministries depart from Elon Musk's X