Compatible finite element methods for atmospheric dynamical cores