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