Text this: Mixed finite element analysis for arbitrarily curved beams