Measurement of jet-substructure observables in top quark, W boson and light jet production in proton-proton collisions at $$\sqrt{s}$$ = 13 TeV with the ATLAS detector