The energetics and interactions of random dislocation walls