Evolution of bond-angle distribution from liquid to glassy states