Developing an automatic optimisation procedure to determine initial droplet locations for drying to a specified target shape