Simulation of electrical noise in bulk polycristalline YBCO superconductors in a magnetic field