Text this: Central finite volume methods for ideal and shallow water magnetohydrodynamics