Knock-on bremsstrahlung in heavy-ion collisions with thick targets