Complete optimisation of multi-configuration Jastrow wave functions by variational transcorrelated method.