Simulations of charge transfer in Electron Multiplying Charge Coupled Devices