Two different mechanisms of formation of quantum dots in borosilicate glass