Rotation of inertial frames by angular momentum of matter and waves