A Monte Carlo calculation of secondary electron bremsstrahlung in PIXE