Predicting boron coordination in multicomponent borate and borosilicate glasses using analytical models and machine learning