Framework for measurement units and dimensional analysis