Maintaining spanning trees of small diameter