Relative homotopy invariants of the type of the Lusternik-Schnirelmann category