Differentiable Skill Optimisation for Powder Manipulation in Laboratory Automation