Attractive interactions between like-oriented surface steps from an ab initio perspective: Role of the elastic and electrostatic contributions