Automating scientific workflows with AiiDA