Baryons as solitons and mass formulas