The automated optimisation of a coarse-grained protein force field using free energy data