Automated prioritised 3D dose-based MLC segment generation for step-and-shoot IMRT