Shock-induced energy transfers in MHD