EU must change after UK vote, says top German minister