Robert McGregor filmed himself raping three boys, aged three, six and 12, then shared the videos with other paedophiles online.