Bremsstrahlung in heavy-ion reactions