replace matlab-generated mass matrix/rhs/constraints with hand-coded from Seb's AWE book chapter