Boundary-value problems and the validity of the Post constraint in modern electromagnetism