The relation between divertor conditions and the L-H threshold on JET