Linear media in classical electrodynamics and the Post constraint