Judge who jailed fracking protesters with ‘excessive’ sentence has family links to oil and gas firm