Design of a dynamically orthogonalized Penning trap with higher order anharmonicity compensation