Generalised boundary conditions for hydrogen transport at crack tips