Layer-wise training for self-supervised learning on graphs