Homogeneous nucleation of dislocations in copper: Theory and approximate description based on molecular dynamics and artificial neural networks