Optimisation of information theory based registration using gradient information