Characteristic invariants of foliated bundles