The effect of thick targets on some nuclear reactions commonly used to monitor high energy proton beams