The structure of max-plus hyperplanes