Lattice inversion potential with neural network corrections for metallic systems