Text this: Automation and optimisation of resin transfer moulding