Partial breaking of supersymmetry, open strings and M theory