A calculus for ideal triangulations of three-manifolds with embedded arcs