Abstractions and Automated Algorithms for Mixed Domain Finite Element Methods