Which process contributes to the formation of layers in protoplanets when unstable elements release particles and energy?.