Stresses on secondary systems due to piled-up groups of dislocations of arbitrary orientation