Establishment of maternal blood supply to the placenta: insights into plugging, unplugging and trophoblast behaviour from an agent-based model