Minor planets and related objects. XVIII - UBV photometry and surface composition