Design and test of beam diagnostics equipment for the FAIR proton linac