A glass with functions of sensor for detecting fracture, stress, and strani, and corresponding method of fabricating thereof