Index formulae for mixed boundary conditions on manifolds with corners