Integral characteristics of rigid inclusions and cavities in the two-dimensional theory of elasticity