Two men who tried to smuggle £42 million worth of cocaine into the UK have been jailed.