Three boys convicted of raping two girls in separate attacks were spared custody by a judge because of detailed evidence about the precise nature of their offending, prospects for rehabilitation, and the profound intellectual limitations of two of the teenagers.